package com.wang.a;

import com.wang.dto.UserProfileDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author wangyandong
 * @date 2020/1/31 23:22
 */

@FeignClient(value = "wang-spring-cloud-user",path = "/outer/user")
public interface UserProfileFeign {
    @GetMapping("/getById/{userId}")
    UserProfileDTO getById(@RequestParam("userId") @PathVariable("userId") Integer userId);

}
